package com.dnjn.happiness.survey.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dnjn.happiness.survey.domain.SurveyIntervalScore;
import com.dnjn.happiness.survey.mapper.SurveyIntervalScoreMapper;
import com.dnjn.happiness.survey.service.ISurveyIntervalScoreService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 区间信息Service业务层处理
 *
 * @author happiness
 * @date 2023-11-16
 */
@Service
public class SurveyIntervalScoreServiceImpl extends ServiceImpl<SurveyIntervalScoreMapper, SurveyIntervalScore> implements ISurveyIntervalScoreService {

    @Override
    public void deleteBySurveyId(Long surveyId) {
        baseMapper.deleteBySurveyId(surveyId);
    }

    @Override
    public List<SurveyIntervalScore> selectGrade(Long surveyId) {

        return baseMapper.selectGrade(surveyId);
    }
}

